﻿// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the LGPL License, Version 3.0. See License.txt in the project root for license information.
// Website: https://admin.blazor.zone

using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;

namespace BlazorAdmin.Web.Shared.Extensions
{
    /// <summary>
    /// 
    /// </summary>
    public static class ApplicationBuilderExtensions
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="builder"></param>
        /// <returns></returns>
        public static WebApplication UseBootstrapBlazorAdmin(this WebApplication builder)
        {
            //builder.UseBootstrapBlazor();

            // 激活 ICacheManager
            builder.Services.GetRequiredService<BlazorAdmin.Caching.ICacheManager>();

            return builder;
        }
    }
}